package com.coolingme.player.action;

import com.coolingme.player.IAction;
import com.coolingme.player.Television;

/**
 * 换台命令
 *
 * @author wangyue
 * @date 2020-09-24 21:33
 */
public class ChangeChannelAction implements IAction {

    private Television television;

    public ChangeChannelAction(Television television) {
        this.television = television;
    }

    @Override
    public void execute() {
        this.television.changeChannel();
    }

}
